#[doc = "Register `TIMERS_EOI` reader"]
pub struct R(crate::R<TIMERS_EOI_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<TIMERS_EOI_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::convert::From<crate::R<TIMERS_EOI_SPEC>> for R {
    fn from(reader: crate::R<TIMERS_EOI_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `timer_seoi` reader - Reading this register clears interrupt for timers."]
pub struct TIMER_SEOI_R(crate::FieldReader<bool, bool>);
impl TIMER_SEOI_R {
    pub(crate) fn new(bits: bool) -> Self {
        TIMER_SEOI_R(crate::FieldReader::new(bits))
    }
}
impl core::ops::Deref for TIMER_SEOI_R {
    type Target = crate::FieldReader<bool, bool>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl R {
    #[doc = "Bit 0 - Reading this register clears interrupt for timers."]
    #[inline(always)]
    pub fn timer_seoi(&self) -> TIMER_SEOI_R {
        TIMER_SEOI_R::new((self.bits & 0x01) != 0)
    }
}
#[doc = "TIMERS_EOI is the interrupt clear register for timers.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [timers_eoi](index.html) module"]
pub struct TIMERS_EOI_SPEC;
impl crate::RegisterSpec for TIMERS_EOI_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [timers_eoi::R](R) reader structure"]
impl crate::Readable for TIMERS_EOI_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets TIMERS_EOI to value 0"]
impl crate::Resettable for TIMERS_EOI_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}
